import Layout from '@/layout'

const asyncRoutes = [
  {
    path: '/permission',
    name: 'permission',
    component: Layout,
    meta: {
      title: '权限管理',
      icon: 'nav-icon icon-user',
      resourceId: 'route:/web/permission-management/',
    },
    children: [
      {
        path: '/permission/roleList',
        name: 'roleList',
        component: () => import('@/views/permission/roleList.vue'),
        meta: {
          title: '角色管理',
          subject: '权限',
          resourceId: 'route:/web/permission-management/role-management/',
        },
      },
      {
        path: '/permission/userPermissionList',
        name: 'userPermissionList',
        component: () => import('@/views/permission/userPermissionList.vue'),
        meta: {
          title: '用户权限',
          subject: '权限',
          resourceId: 'route:/web/permission-management/user-permission/',
        },
      },
    ],
  },
]
export default asyncRoutes
